package me.xiaoyan.java.chapter12;

/**
 * 电池类
 * @author keley
 *
 */
public class Cell {
	String brand;
	double price;
	String type;
	
	/**
	 * 放电
	 * @return
	 */
	public String getPower()
	{
		return "把电拿去吧";
	}
	
	/**
	 * 充电
	 */
	public void setPower()
	{
		showInfo();
		System.out.println("充电中...");
	}
	
	/**
	 * 显示电池信息
	 */
	public void showInfo(){
		System.out.println("****电池信息****");
		System.out.println("品牌:" + brand);
		System.out.println("价格:" + price);
		System.out.println("型号:" + type);
	}
	
}
